package com.csvw.skr.newTask.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2016/12/9.
 * 售前店访的问题
 */
@Entity
@Table(name = "csvw_skr_task_problem")
public class PlanProblem {

    /**
     * 售前店访问题的ID， planId -　年月日时分秒
     */
    @Id
    @Column(name = "pk_id", length = 100)
    private String id;

    /**
     * 计划Id
     */
    @Column(length = 50)
    private String planId;

    /**
     * 问题进行检查的计划的Id
     */
    @Column(length = 50)
    private String checkPlanId;

    /**
     * 店访任务Id
     */
    @Column(length = 50)
    private String missionId;

    /**
     * 经销商code
     */
    @Column(length = 20)
    private String dealer;

    /**
     * 问题描述
     */
    private String problemDescription;
    /**
     * 问题分析
     */
    private String problemAnalysis;
    /**
     * 改进措施
     */
    private String improvementMeasures;
    /**
     * 问题整改到达目标
     */
    private String achieveTarget;
    /**
     * 问题责任人
     */
    @Column(length = 20)
    private String charger;

    private String pics;
    /**
     * 承诺问题整改完成时间
     */
    private Date finishTime;
    /**
     * 问题是否检查通过
     */
    @Column(columnDefinition="int default 0")
    private int pass = 0;

    /**
     * 问题检查结果
     */
    private String checkResult;

    /**
     * 问题检查时间
     */
    private Date checkTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getMissionId() {
        return missionId;
    }

    public void setMissionId(String missionId) {
        this.missionId = missionId;
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription;
    }

    public String getProblemAnalysis() {
        return problemAnalysis;
    }

    public void setProblemAnalysis(String problemAnalysis) {
        this.problemAnalysis = problemAnalysis;
    }

    public String getImprovementMeasures() {
        return improvementMeasures;
    }

    public void setImprovementMeasures(String improvementMeasures) {
        this.improvementMeasures = improvementMeasures;
    }

    public String getAchieveTarget() {
        return achieveTarget;
    }

    public void setAchieveTarget(String achieveTarget) {
        this.achieveTarget = achieveTarget;
    }

    public String getCharger() {
        return charger;
    }

    public void setCharger(String charger) {
        this.charger = charger;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public int getPass() {
        return pass;
    }

    public void setPass(int pass) {
        this.pass = pass;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getCheckPlanId() {
        return checkPlanId;
    }

    public void setCheckPlanId(String checkPlanId) {
        this.checkPlanId = checkPlanId;
    }
}
